<!DOCTYPE html>
<html lang="zh_CN" style="overflow: hidden;">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<!-- Set render engine for 360 browser -->
<meta name="renderer" content="webkit">
<meta charset="utf-8">
<title>Braceformer云平台</title>

<meta name="description" content="This is page-header (.page-header &gt; h1)">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<link href="__ROOT__/statics/simpleboot/themes/{:C('SP_ADMIN_STYLE')}/theme.min.css?v=2020101201" rel="stylesheet">
<link href="__ROOT__/statics/simpleboot/css/simplebootadmin.css" rel="stylesheet">
<link href="__ROOT__/statics/simpleboot/font-awesome/4.2.0/css/font-awesome.min.css"  rel="stylesheet" type="text/css">
<!--[if IE 7]>
	<link rel="stylesheet" href="__ROOT__/statics/simpleboot/font-awesome/4.2.0/css/font-awesome-ie7.min.css">
<![endif]-->
<link rel="stylesheet" href="__ROOT__/statics/simpleboot/themes/{:C('SP_ADMIN_STYLE')}/simplebootadminindex.min.css?v=2020101201">
<!--[if lte IE 8]>
	<link rel="stylesheet" href="__ROOT__/statics/simpleboot/css/simplebootadminindex-ie.css?" />
<![endif]-->
	<script src="__ROOT__/statics/js/jquery.js"></script>
	<script src="__ROOT__/statics/simpleboot/bootstrap/js/bootstrap.min.js"></script>
<style>
.navbar .nav_shortcuts .btn{margin-top: 5px;}

/*-----------------导航hack--------------------*/

.nav-list>li.open{position: relative;}
.nav-list>li.open .back {display: none;}
.nav-list>li.open .normal {display: inline-block !important;}
.nav-list>li.open a {padding-left: 7px;}
.nav-list>li .submenu>li>a {height: 20px; color: #ffffff; font-size: 18px; background: #8cc0f7;}
.nav-list>li .submenu>li a>[class*="fa-"]:first-child{left:20px;}
.nav-list>li ul.submenu ul.submenu>li a>[class*="fa-"]:first-child{left:30px;}
/*----------------导航hack--------------------*/
</style>

<script>
//全局变量
var GV = {
	HOST:"{$_SERVER['HTTP_HOST']}",
    DIMAUB: "__ROOT__/",
    JS_ROOT: "statics/js/",
    TOKEN: ""
};
</script>
<php>$submenus=(array)json_decode($SUBMENU_CONFIG);</php>

<php>function getsubmenu($submenus){</php>
<php>foreach($submenus as $menu){ </php>
					<li>
						<php>if(empty($menu->items)){</php>
						<!--924aaa 45a1de-->
							<a style="line-height:39px; height: 40px; color: #ffffff; font-size: 19px; background-color: #45a1de; text-shadow:#000 3px 4px 5px;" href="javascript:openapp('{$menu:url}','{$menu:id}','{$menu:name}');">
								<!--<i class="fa fa-{$menu:icon|default='phone'}"></i>-->
								<img style="width: 39px;" src="/Template/images/{$menu:name}.png?v=20200615"/>
								<span style="text-shadow: 1px 1px #6d6f71,2px 2px #6d6f71,3px 3px #6d6f71;" class="menu-text">{$menu:name}</span>
							</a>
						<php>}else{</php>
							<a style="line-height:39px; height: 40px; color: #ffffff; font-size: 19px; background-color: #45a1de" href="#" class="dropdown-toggle">
								<!--<i class="fa fa-{$menu:icon|default='desktop'} normal"></i>-->
								<img style="width: 39px;" src="/Template/images/{$menu:name}.png?v=20200615"/>
								<span style="text-shadow: 1px 1px #6d6f71,2px 2px #6d6f71,3px 3px #6d6f71;" class="menu-text normal">{$menu:name}</span>
								<b style="color: #ffffff; top:14px; font-size: 22px" class="arrow fa fa-angle-right normal"></b>
								<i class="fa fa-reply back"></i>
								<span class="menu-text back">返回</span>

							</a>

							<ul  class="submenu">
									<php>getsubmenu1((array)$menu->items)</php>
							</ul>
						<php>}</php>

					</li>

				<php>}</php>
<php>}</php>

<php>function getsubmenu1($submenus){</php>
<php>foreach($submenus as $menu){</php>
					<li>
						<php>if(empty($menu->items)){</php>
							<a href="javascript:openapp('{$menu:url}','{$menu:id}','{$menu:name}');">
								<i class="fa fa-caret-right"></i>
								<span class="menu-text">{$menu:name}</span>
							</a>
						<php>}else{</php>
							<a href="#" class="dropdown-toggle">
								<i class="fa fa-caret-right"></i>
								<span class="menu-text">{$menu:name}</span>
								<b class="arrow fa fa-angle-right"></b>
							</a>
							<ul  class="submenu">
									<php>getsubmenu2((array)$menu->items)</php>
							</ul>
						<php>}</php>

					</li>

				<php>}</php>
<php>}</php>

<php>function getsubmenu2($submenus){</php>
<php>foreach($submenus as $menu){</php>
					<li>
						<a href="javascript:openapp('{$menu:url}','{$menu:id}','{$menu:name}');">
								&nbsp;<i class="fa fa-angle-double-right"></i>
								<span class="menu-text">{$menu:name}</span>
							</a>
					</li>

				<php>}</php>
<php>}</php>


<if condition="APP_DEBUG">
<style>
#think_page_trace_open{left: 0 !important;
right: initial !important;}
</style>
</if>

</head>

<body style="min-width:900px;" screen_capture_injected="true">
	<div id="loading"><i class="loadingicon"></i><span>正在加载...</span></div>
	<div id="right_tools_wrapper">
		<!--<span id="right_tools_clearcache" title="清除缓存" onclick="javascript:openapp('{:U('admin/setting/clearcache')}','right_tool_clearcache','清除缓存');"><i class="fa fa-trash-o right_tool_icon"></i></span>-->
		<span id="refresh_wrapper" title="刷新当前页" ><i style="margin-top: 20px;color: #FCFCFF" class="fa fa-refresh right_tool_icon"></i></span>
	</div>
	<div style="color: #45a1de; background-color: #FCFCFF;" class="navbar">
		<div class="navbar-inner">
			<php>$fc = "#45a1de"; $bgc = "#FCFCFF"</php>
			<div style="color: {$fc}; background-color: {$bgc}; height: 65px;" class="container-fluid">
				<a style="color: {$fc}; font-size: 33px; font-weight: bold; background-color: {$bgc}" href="{:U('index/index')}" class="brand">
					<img style="height: 45px;" src="/Template/images/BraceFormer.png?v=2020052501">
					<!--假肢矫形器信息管理系统(BraceFormer Information System)-->
				</a>
				<div class="pull-left nav_shortcuts" >

				</div>
				<ul style="margin-top: 5px;" class="nav simplewind-nav pull-right">
					<li style="color: {$fc}; font-size: 18px; background-color: {$bgc}" class="light-blue">
						<a style="color: {$fc}; background-color: {$bgc}; font-size: 18px" data-toggle="dropdown" href="#" class="dropdown-toggle">
							<!--<img class="nav-user-photo" src="__ROOT__/statics/images/icon/logo-18.png" alt="{$admin.user_login}">-->
							<span class="user-info">
								欢迎, {$admin.admin_name|default=$admin[user_login]}
							</span>
							<i class="fa fa-caret-down"></i>
						</a>
						<ul class="user-menu pull-right dropdown-menu dropdown-yellow dropdown-caret dropdown-closer">
							<li><a href="{:U('User/self?first=1')}" target="_blank"><i class="fa fa-unlock-alt"></i> 修改密码</a></li>
							<li><a href="{:U('Public/logout')}"><i class="fa fa-sign-out"></i> 退出</a></li>
						</ul>
					</li>
				</ul>
			</div>
		</div>
	</div>

	<div class="main-container container-fluid">

		<div style="background-color: #FCFCFF" class="sidebar" id="sidebar">
			<!-- <div class="sidebar-shortcuts" id="sidebar-shortcuts">
			</div> -->
			<div id="nav_wraper">
			<ul class="nav nav-list">
				{:getsubmenu($submenus)}
			</ul>
			</div>

		</div>

		<div class="main-content">
			<div style="background-color: #45a1de; min-height: 38px;  border: 1px solid #45a1de" class="breadcrumbs" id="breadcrumbs">
				<a id="task-pre" class="task-changebt">←</a>
				<div id="task-content">
				<ul class="macro-component-tab" id="task-content-inner">
					<li id="首页"  class="macro-component-tabitem noclose" app-id="0" app-url="{:U('main/home')}" app-name="首页">
						<span style="color: #45a1de" class="macro-tabs-item-text">首页</span>
					</li>
				</ul>
				<div style="clear:both;"></div>
				</div>
				<a id="task-next" class="task-changebt">→</a>
			</div>

			<div class="page-content" id="content">
				<iframe src="{:U('Main/index')}" style="width:100%;height: 100%;" frameborder="0" id="appiframe-0" class="appiframe"></iframe>
			</div>
		</div>
	</div>
	
	<script>
	var ismenumin = $("#sidebar").hasClass("menu-min");
	$(".nav-list").on( "click",function(event) {
		var closest_a = $(event.target).closest("a");
		if (!closest_a || closest_a.length == 0) {
			return
		}
		if (!closest_a.hasClass("dropdown-toggle")) {
			if (ismenumin && "click" == "tap" && closest_a.get(0).parentNode.parentNode == this) {
				var closest_a_menu_text = closest_a.find(".menu-text").get(0);
				if (event.target != closest_a_menu_text && !$.contains(closest_a_menu_text, event.target)) {
					return false
				}
			}
			return
		}
		var closest_a_next = closest_a.next().get(0);
		if (!$(closest_a_next).is(":visible")) {
			var closest_ul = $(closest_a_next.parentNode).closest("ul");
			if (ismenumin && closest_ul.hasClass("nav-list")) {
				return
			}
			closest_ul.find("> .open > .submenu").each(function() {
						if (this != closest_a_next && !$(this.parentNode).hasClass("active")) {
							$(this).slideUp(150).parent().removeClass("open")
						}
			});
		}
		if (ismenumin && $(closest_a_next.parentNode.parentNode).hasClass("nav-list")) {
			return false;
		}
		$(closest_a_next).slideToggle(150).parent().toggleClass("open");
		return false;
	});
	</script>
	<script src="__TMPL__/Admin/View/assets/js/index.js"></script>





</body>
</html>